package com.gitee.sxc25800.chen;

/*
    @author: Chen
    @date: 2022/3/15 10:37 AM (UTC+8)
    @version: v1.0
    @description: 动物-熊猫
 */

public class Panda {
    private int id = 1;
    private String name = "panda";
    private String color = "black and white";
    private int age = 2;
    private String food = "bamboo";
    private String location = "China";

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getFood() {
        return food;
    }

    public void setFood(String food) {
        this.food = food;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Panda(" + id + ")\n" +
                "名字 = " + name + '\n' +
                "颜色 = " + color + '\n' +
                "年龄 = " + age + '\n' +
                "食物 = " + food + '\n' +
                "居住地 = " + location;
    }
}
